﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlServerCe;

namespace ProvaBD
{
    class AlumnesConversor :Alumnes
    {
        BD bd;
        public AlumnesConversor()
        {
            bd=new BD();
            bd.Connectarse();
            bd.propertyConexxio.Open();
        }
        public SqlCeDataReader mostratTots()
        {
            SqlCeCommand com = new SqlCeCommand("SELECT * FROM alumnes", bd.propertyConexxio);
            SqlCeDataReader r = com.ExecuteReader();
            return r;
        }
    }
}
